package com.hs.srm.admin.modules.purchasechange.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 采购变更记录实体类
 *
 * @author ych
 * @since 2020-04-20 15:40:27
 */
@Data
@TableName("purchase_change_record")
public class PurchaseChangeRecordEntity implements Serializable {
    private static final long serialVersionUID = -55072043597363053L;

    /**
     * 采购变更申请表 id
     */
    @TableId(value = "pk_id", type = IdType.UUID)
    @TableField("pk_id")
    private String pkId;

    /**
     * 变更单号
     */
    @TableField("change_code")
    private String changeCode;

    /**
     * 采购申请编号
     */
    @TableField("purch_request_code")
    private String purchRequestCode;

    /**
     * 采购申请行项目
     */
    @TableField("purch_request_item_code")
    private String purchRequestItemCode;

    /**
     * 物料编码
     */
    @TableField("material_code")
    private String materialCode;

    /**
     * 物料描述
     */
    @TableField("material_desc")
    private String materialDesc;

    /**
     * 原申请数量
     */
    @TableField("former_apply_qty")
    private String formerApplyQty;

    /**
     * 变更数量
     */
    @TableField("apply_qty")
    private String applyQty;

    /**
     * 原交期
     */
    @TableField("former_delivery_date")
    @JSONField(format = "yyyy-MM-dd")
    private Date formerDeliveryDate;

    /**
     * 变更交期
     */
    @TableField("delivery_date")
    @JSONField(format = "yyyy-MM-dd")
    private Date deliveryDate;

    /**
     * 变更原因
     */
    @TableField("reason")
    private String reason;

    /**
     * 申请人
     */
    @TableField("creator")
    private String creator;

    /**
     * 申请日期
     */
    @TableField("apply_date")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date applyDate;

    /**
     * 申请人OA账号
     */
    @TableField("oa_count")
    private String oaCount;

}